]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
add annoying delay
authorRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 19:16:28 +0000 (15:16 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 19:17:17 +0000 (15:17 -0400)
js/gdm/util.js

index ebf5dd5cea2d1da880f1bda6218415311b50d990..18866dedebeb0cf91e3e07bbca20d585339f3eaa 100644 (file)
@@ -370,7 +370,11 @@ const ShellUserVerifier = new Lang.Class({
             // to indicate the user can swipe their finger instead
             this.emit('show-login-hint', _("(or swipe finger)"));
         } else if (serviceName == PASSWORD_SERVICE_NAME) {
+        GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+                         10000,
+                         Lang.bind(this, function() {
             this._queueMessage(info, 'login-dialog-message-info');
+            }));
         }
     },
 
@@ -379,7 +383,11 @@ const ShellUserVerifier = new Lang.Class({
         // users who haven't enrolled their fingerprint.
         if (serviceName != PASSWORD_SERVICE_NAME)
             return;
+        GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+                         10000,
+                         Lang.bind(this, function() {
         this._queueMessage(problem, 'login-dialog-message-warning');
+        }));
     },
 
     _onInfoQuery: function(client, serviceName, question) {
@@ -387,7 +395,11 @@ const ShellUserVerifier = new Lang.Class({
         if (serviceName != PASSWORD_SERVICE_NAME)
             return;
 
+        GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+                         10000,
+                         Lang.bind(this, function() {
         this.emit('ask-question', serviceName, question, '');
+        }));
     },
 
     _onSecretInfoQuery: function(client, serviceName, secretQuestion) {
@@ -395,7 +407,11 @@ const ShellUserVerifier = new Lang.Class({
         if (serviceName != PASSWORD_SERVICE_NAME)
             return;
 
+        GLib.timeout_add(GLib.PRIORITY_DEFAULT,
+                         10000,
+                         Lang.bind(this, function() {
         this.emit('ask-question', serviceName, secretQuestion, '\u25cf');
+        }));
     },
 
     _onReset: function() {